<%@page import="com.hotel.test.service.HotelLocalServiceUtil"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
    <%@include file="/html/init.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
	String url = (String) request.getAttribute("url");
	List<Hotel> hotels = HotelLocalServiceUtil.getAll();
	
%>

<portlet:actionURL name="addRoomType" var="addRoomTypeURL">
	<portlet:param name="redirectTo" value="<%=url %>"></portlet:param>
</portlet:actionURL>
<aui:form action="<%= addRoomTypeURL%>">
		<aui:input name="roomTypeName" label="Ten Kieu Phong"></aui:input>
		<aui:select name="hotelId" label="Chon Khach San">
			<%
				for(Hotel hotel: hotels)
				{
					%>
						<aui:option selected="vien" value="<%=hotel.getHotelId() %>"><%=hotel.getHotelName() %></aui:option>
					<%
				}
			%>
		</aui:select>
		<aui:input  type = "textarea" name = "information" label="Mo Ta" cols= "120" rows = "15"></aui:input>
		<aui:input name="numberOfGuest" label="So Luong Khach" type="number"></aui:input>
		<aui:input name="numberOfRoom" label="So Luong Phong " type="number"></aui:input>
		<aui:input name="rice" label="Gia Ca"></aui:input>
		<aui:button type="submit" name="save"></aui:button>
	</aui:form>

</body>
</html>